-
Notifications
You must be signed in to change notification settings - Fork 3
Set action name to /ns/pkg/action just like the real thing #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR modifies the way the action name is set by aligning the format with the Runtime, ensuring that it follows the "/ns/pkg/action" pattern.
- Updated the __OW_ACTION_NAME environment variable to include the namespace, package name, and action name.
- Standardized the action name format to mirror the live runtime behavior.
Comments suppressed due to low confidence (1)
src/lib/run-dev.js:364
- [nitpick] Consider verifying that process.env.__OW_NAMESPACE does not already include a leading slash to avoid duplicating slashes in the resulting action name.
process.env.__OW_ACTION_NAME = `/${process.env.__OW_NAMESPACE}/${packageName}/${actionName}`
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #152 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 7 7
Lines 642 642
Branches 132 132
=========================================
Hits 642 642 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
shazron
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
We were setting action name differently from Runtime.
Proper format is /ns/pkg/action
Related Issue
adobe/aio-cli#752
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: